package com.xxl.job.admin.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author chenlinqing
 * @date 2024/1/20 下午8:39
 **/
@Component
public class DemoJob {
    private final Logger logger = LoggerFactory.getLogger(DemoJob.class);

    @XxlJob("demoJobHandler")
    public void demoJobHandler() {
        logger.info("demoJobHandler执行成功");
    }
}
